package exception;

import sun.reflect.annotation.ExceptionProxy;

/**
 * @author xiaoming
 * @version 1.0
 * @date 2019-02-20 13:35
 **/
public class Demo1finally {
    public static void main(String[] args) {
        // finally
        int temp = 10000;

        try {
            throw new Exception();
        } catch (Exception e) {
            System.out.println("1捕获");
            System.out.println( ++temp );
        } finally {
            System.out.println("2finally");
            temp = 99999;
        }
    }
}

